home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1992 June: ROMin Holiday / ADC Developer CD (1992-06) (''ROMin Holiday'')_iso / Developer Connection - 06-1992.iso / Periodicals / develop / develop 4 code / Poly. in Code Resources / A5World / A5World.h < prev   
Encoding:
C/C++ Source or Header  |  1990-08-16  |  744 b   |  37 lines  |  [TEXT/MPS ]

  1. /*
  2.     A5World.h
  3.     
  4.     Interface to A5 world maintenance class.
  5.     
  6.     by Patrick Beard.
  7.     
  8.     ©1990 by Patrick C. Beard.  All rights reserved.
  9.  */
  10.  
  11. #ifndef __A5WORLD__
  12. #define __A5WORLD__
  13.  
  14. #include <Memory.h>
  15. #include <StdDef.h>
  16.  
  17. class A5World {
  18. public:
  19.     A5World();                            // constructor sets up world.
  20.     ~A5World();                            // destructor destroys it.
  21.     
  22.     // main functions, Enter sets A5 to point to our world.
  23.     void Enter();                        // go into our world.
  24.     void Leave();                        // restore old A5 context.
  25.     
  26.     // error reporting.
  27.     OSErr Result()    { return error; }
  28.  
  29. private:
  30.     OSErr error;                        // the last error that occurred.
  31.     long worldSize;                        // how big our globals are.
  32.     Ptr ourA5;                            // the storage for the A5 world.
  33.     Ptr oldA5;                            // old A5.
  34. };
  35.  
  36. #endif
  37.